<?php 
$path = base_url()."lib/img/trans.gif";
$nav_img = "<img src='".$path."' width='50' height='50'/>";
$previous_url="";
if(empty($additional_params)){
	$additional_params = '';
}
$pathChunks = explode("/", uri_string());
$start = "";
for( $i=0;$i<2;$i++){
	$start.= ($i==1)?"/".$pathChunks[$i]:$pathChunks[$i];
}
if( empty( $gallery_title )){
	$gallery_title="default";
};
if( $previous_cat == -1 ){
	$previous = 'inactive_link_left';
}
else {
	$previous = 'active_link_left';
	$previous_url="href='".site_url($start."/catId/".$previous_cat.$additional_params)."'";
}
if( empty( $next_cat )){
	$next = "<a  class='inactive_link_right' >$nav_img</a>";
}
else {
	$next = "<a href='".site_url($start."/catId/".$next_cat.$additional_params)."' class='active_link_right' >$nav_img</a>";
}
?>
<div id="logincontainer" class="center floatleft">
<div id='navigationpanel' class="clearfix">
<div class="category_navigation"><a class='<?php echo $previous?>' <?php echo $previous_url?>><?php echo $nav_img?></a></div>
<div class="gallery_title"><span><?php echo $gallery_title?></span></div>
<div class="category_navigation"><?php echo $next?></div>
</div>
<div class='grid_12' id="gallery_panel">
<?php 
echo $gallery_item_template;
?>
</div>
</div>
